//
//  User.m
//  TeamProject_1.0
//
//  Created by lanou3g on 15/12/9.
//  Copyright © 2015年 wey. All rights reserved.
//

#import "User.h"

@implementation User

+(instancetype)userWithDic:(NSDictionary *)dic {

    User *model = [[User alloc]init];
    [model setValuesForKeysWithDictionary:dic];
    return model;
}

- (void)setValue:(id)value forKey:(NSString *)key {

    if ([key isEqualToString:@"id"]) {
        _uid = value;
       
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {

}

@end
